package com.kgc.sbt.mapper;

import com.kgc.sbt.beans.Track;
import com.kgc.sbt.beans.TrackExample;
import com.kgc.sbt.beans.TrackForm;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TrackMapper {
    long countByExample(TrackExample example);

    int deleteByExample(TrackExample example);

    int deleteByPrimaryKey(Integer trackId);

    int deleteByUserId(Integer userId);

    int insert(Track record);

    int insertSelective(Track record);

    List<Track> selectByExample(TrackExample example);

    List<TrackForm> selectTrackByUserId(Integer userId);

    Track selectByPrimaryKey(Integer trackId);

    int updateByExampleSelective(@Param("record") Track record, @Param("example") TrackExample example);

    int updateByExample(@Param("record") Track record, @Param("example") TrackExample example);

    int updateByPrimaryKeySelective(Track record);

    int updateByPrimaryKey(Track record);

    int selectTrack(Integer userId, Integer productId);

    int deleteThis(Integer userId,Integer productId);


}